document.addEventListener('DOMContentLoaded', function () {
	var detail = chrome.extension.getBackgroundPage().Detail;

	if(detail.status){
		$('#_img').show().attr("src", "http://s.jiathis.com/qrcode.php?url="+detail.url);
		$('#_msg').hide();
	}else{
		$('#_msg').show().html(detail.msg);
		;
		$('#_img').hide();
	}
});